package com.reggie.service;

import com.reggie.dto.SetmealDto;
import com.reggie.pojo.Setmeal;
import com.reggie.util.PageUtil;

import java.util.List;

public interface SetmealService {
    PageUtil<Setmeal> findAll(Integer page, Integer pageSize, String name);

    boolean delete(Long id, Long userId);

    boolean editStatus(Long id, Integer status, Long userId);

    boolean add(SetmealDto setmealDto);

    SetmealDto find(Long id);

    boolean edit(SetmealDto setmealDto);

    List<Setmeal> findByCategoryIdAndStatus(Long categoryId, Integer status);
}
